<template>
<div>
<h2 class='name' v-for='n in name' :key='251'>{{n.name}} | {{n.age}} | {{n.sex}}</h2>
</div>
</template>

<script>
export default {
    name:'Student',
    data(){
        return {
            name:[{
                name:"张大",
                age:'18',
                sex:'男'
            }]
        }
    }
}
</script>


<style>
    .name{
        background: lightblue;
    }
</style>